package bb.lanxing.util;

import bb.lanxing.R;
import bb.lanxing.model.database.Workout;

public class SportTypeResUtil {
    public static int getHistoryTypeIcon(int i) {
        return i != 0 ? i != 1 ? i != 2 ? i != 5 ? i != 6 ? i != 8 ? R.drawable.ic_history_cycling : R.drawable.ic_history_training : R.drawable.ic_history_skiing : R.drawable.ic_history_swimming : R.drawable.ic_history_running : R.drawable.ic_history_walking : R.drawable.ic_history_other;
    }

    public static int getRoundTypeIcon(int i) {
        return i != 0 ? i != 1 ? i != 2 ? i != 5 ? i != 6 ? i != 8 ? R.drawable.ic_round_sport_type_cycling : R.drawable.ic_round_sport_type_training : R.drawable.ic_round_sport_type_skiing : R.drawable.ic_round_sport_type_swimming : R.drawable.ic_round_sport_type_running : R.drawable.ic_round_sport_type_walking : R.drawable.ic_round_sport_type_other;
    }

    public static int getSportIcon(int i) {
        return switch (i) {
            case Workout.TYPE_CYCLING -> R.drawable.ic_tab_sport_cycling_unfocus;
            case Workout.TYPE_RUNNING -> R.drawable.ic_tab_sport_running_unfocus;
            case Workout.TYPE_WALKING -> R.drawable.ic_tab_sport_walking_unfocus;
            case Workout.TYPE_SKIING -> R.drawable.ic_sport_type_skiing_unfocus;
            case Workout.TYPE_SWIMMING -> R.drawable.ic_sport_type_swimming_unfocus;
            case Workout.TYPE_TRAINING -> R.drawable.ic_sport_type_training_unfocus;
            case Workout.TYPE_OTHER -> R.drawable.ic_sport_type_other_unfocus;
            default -> R.drawable.ic_tab_sport_cycling_unfocus;
        };
    }

    public static int getSelectedSportIcon(int i) {
        return switch (i) {
            case Workout.TYPE_CYCLING -> R.drawable.ic_tab_sport_cycling_focus;
            case Workout.TYPE_RUNNING -> R.drawable.ic_tab_sport_running_focus;
            case Workout.TYPE_WALKING -> R.drawable.ic_tab_sport_walking_focus;
            case Workout.TYPE_SKIING -> R.drawable.ic_sport_type_skiing_focus;
            case Workout.TYPE_SWIMMING -> R.drawable.ic_sport_type_swimming_focus;
            case Workout.TYPE_TRAINING -> R.drawable.ic_sport_type_training_focus;
            case Workout.TYPE_OTHER -> R.drawable.ic_sport_type_other_focus;
            default -> R.drawable.ic_tab_sport_cycling_focus;
        };
    }

    public static int getSportImage(int i) {
        return switch (i) {
            case Workout.TYPE_CYCLING -> R.drawable.ic_sport_cycling;
            case Workout.TYPE_RUNNING -> R.drawable.ic_sport_running;
            case Workout.TYPE_WALKING -> R.drawable.ic_sport_walking;
            case Workout.TYPE_SKIING -> R.drawable.ic_sport_skiing;
            case Workout.TYPE_SWIMMING -> R.drawable.ic_sport_swimming;
            case Workout.TYPE_TRAINING -> R.drawable.ic_sport_training;
            case Workout.TYPE_OTHER -> R.drawable.ic_sport_free;
            case Workout.TYPE_INDOOR_BIKE -> R.drawable.ic_sport_spinning;
            case Workout.TYPE_BIKE_TRAINER -> R.drawable.ic_sport_bike_trainer;
            case Workout.TYPE_ROWER -> R.drawable.ic_sport_rowing;
            case Workout.TYPE_CROSS_TRAINER -> R.drawable.ic_sport_elliptical;
            default -> R.drawable.ic_sport_cycling;
        };
    }

    public static int getTypeTextRes(int i) {
        return switch (i) {
            case Workout.TYPE_CYCLING -> R.string.cycling;
            case Workout.TYPE_RUNNING -> R.string.running;
            case Workout.TYPE_WALKING -> R.string.walking;
            case Workout.TYPE_SKIING -> R.string.skiing;
            case Workout.TYPE_SWIMMING -> R.string.swimming;
            case Workout.TYPE_TRAINING -> R.string.training;
            case Workout.TYPE_OTHER -> R.string.other_sport;
            case Workout.TYPE_INDOOR_BIKE -> R.string.ftms_indoor_bike;
            case Workout.TYPE_BIKE_TRAINER -> R.string.device_biketrainer_title;
            case Workout.TYPE_ROWER -> R.string.ftms_rower;
            case Workout.TYPE_CROSS_TRAINER -> R.string.ftms_crosstrainer;
            default -> R.string.cycling;
        };
    }
}